﻿@model S4Store.Models.FinancialReport.SHYYEModel
@{
    ViewBag.Title = "SHYYE";
    Layout = null;
    
    S4Store.Models.Chart.Column ChartModel = new S4Store.Models.Chart.Column();
    ChartModel.Name = "销售各业务营业额占比对比";
    ChartModel.YAxis = "比率(%)";
    //ChartModel.Width = 500;
    //ChartModel.Height = 300;
    ChartModel.XAxis.Add("事故车产值占比");
    ChartModel.XAxis.Add("保养产值占比");
    ChartModel.XAxis.Add("维修产值占比");
    ChartModel.XAxis.Add("备件产值占比");
    ChartModel.XAxis.Add("装潢产值占比");
    ChartModel.XAxis.Add("养护产品产值占比");

    foreach(var report in Model.Reports){
        S4Store.Models.Chart.ChartSeries series = new S4Store.Models.Chart.ChartSeries();
        series.Name = report.CarBrand.Name;
        series.Data.Add(report.SGCCZZB);
        series.Data.Add(report.BYCZZB);
        series.Data.Add(report.WXCZZB);
        series.Data.Add(report.BJCZZB);
        series.Data.Add(report.ZHCZZB);
        series.Data.Add(report.YHCPCZZB);
        ChartModel.Serieses.Add(series);
    }
}
<div style="height:100%; overflow:auto">
@Html.Action("ReportBar", "Common", Model.BarModel)
<div style="position:relative; width:100%">
      
        @Html.Partial("../Chart/Column", ChartModel)
    
</div>
</div>


